
#ifndef PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_QUICKSLOT_H_
#define PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_QUICKSLOT_H_

#include "../../engine.h"

#include "../../User.h"


namespace ProjectZ { namespace NCommand { namespace NWorld {

class CS_REQ_USER_INFO_QUICKSLOT
{
public:
	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
	{
		STRESSLOG("[CHANNEL] CS_REQ_USER_INFO_QUICKSLOT::ONEXECUTE");

		PREPARE_PACKET;
		::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();
		pAck->MsgCat("%4d", pUser->GetUserSeq());
		pAck->MsgCat("%c", 8);

		for( int i=0 ; i<8 ; i++ )
		{
			pAck->Write1(i);
			pAck->Write1(pUser->GetCharacterInfo().array_QuickSlot[i].type);
			//pAck->Write8((pUser->GetCharacterInfo().array_QuickSlot[i].index);
			pAck->MsgCat("%8d", pUser->GetCharacterInfo().array_QuickSlot[i].index);
//			pAck->MsgCat("%c", pUser->GetCharacterInfo().array_QuickSlot[i].index);
		}
		pAck->MakePacket(CMD_SC_REQ_USER_INFO_QUICKSLOT);
		pUser->Send(pAck);
	}
};

} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/


#endif /* PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_QUICKSLOT_H_ */
